<template>
    <div>
        <person-left v-if="this.routeName === '/projectFiles/PersonRecruit'"></person-left>
        <recruid-left v-if="this.routeName === '/projectFiles/Recruit'"></recruid-left>
        <!-- <super-left v-if="userInfo.as_diquId !== 39 && (userInfo.as_role === 2 || userInfo.as_role === 3 || userInfo.as_role === 4)"></super-left> -->
    </div>
</template>
<script>
import { mapGetters } from 'vuex'
import personLeft from './personLeft'
import recruidLeft from './recruidLeft'
// import superLeft from './superLeft'
export default {
    components: {
        personLeft,
        recruidLeft
    },
    data () {
        return {
            routeName: '' // 路由名称
        }
    },
    created () {
        // debugger
        this.routeName = this.$route.matched[1].path
        // console.log(this.routeName)
    },
    computed: {
        ...mapGetters(['rx', 'leftInfo', 'updateLeft', 'userInfo'])
    },
    methods: {
    },
    watch: {
        $route () {
            this.routeName = this.$route.matched[1].path
            // console.log(this.routeName)
        }
    }
}
</script>
<style>
td {
  border: 1px solid #ddd !important;
}
</style>
